package com.common.anntation;

import com.common.aspectj.ListValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author: zql
 * @Description: 自定义List类型参数校验
 * @Data: 2021-07-16
 */
@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ListValidator.class)
public @interface SetNotNull {
    String message() default "Set集合中出现null值";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
